package com.qf.business.user.feign;

import com.qf.commons.data.result.R;
import com.qf.data.user.entity.WxScoreDetails;
import com.qf.data.user.entity.WxUser;
import com.qf.data.user.vo.input.WxScoreUpdateInput;
import com.qf.data.user.vo.input.WxUserInput;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * author Ken
 * create_time 2022/9/27
 */
@FeignClient(value = "user-server", contextId = "wxuser")
public interface WxUserFeign {

    @RequestMapping("/wx/query")
    R<WxUser> queryWxUser(@RequestBody WxUserInput wxUserInput);

    @RequestMapping("/wx/score/update")
    R<Integer> updateWxScore(@RequestBody WxScoreUpdateInput scoreUpdateInput);

    @RequestMapping("/wx/score/details")
    R<Integer> createScoreDetails(@RequestBody WxScoreDetails scoreDetails);
}
